package com.xp.record25.bio;

import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
import java.net.Socket;

public class OldBioClient {

    public static void main(String[] args) throws IOException {
        Socket sc = new Socket();
        sc.connect(new InetSocketAddress("localhost",8888));
        OutputStream ops = sc.getOutputStream();
        ops.write(new byte[]{'h','e','l'});

        System.out.println("发送消息成功");

    }
}
